<script setup >
    //接收父传子对象
const props= defineProps({
  name:String
})
    </script>
    
    <template>
      <svg aria-hidden="true" class="gh-icon">
        <use :href="`#icon-${name}`" />
      </svg>
    </template>
    
    <style lang="scss" scoped>
    .gh-icon {
      width: 1em;
      height: 1em;
    }
    </style>
    